

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface NSString (Extension)

- (BOOL)isHasText;
//是否是空字符
+ (BOOL)isStringHasText:(NSString *)str;
//长度是否够
+ (BOOL)isEnoughLength:(NSString *)str maxLenght:(NSInteger)maxLength;
/**
 *  是否包含某字符串
 *
 *  @param theString 包含的字符串
 *
 */
- (BOOL)isHaveTheString:(NSString *)theString;
/**
 *  字符装换成BOOL
 */
- (BOOL)stringToBool;

/**
 *  @author Hwang, 16-09-17 17:09:59
 *
 *  获取带有图标的富文本
 *
 *  @param image 图标图片
 *
 *  @return NSAttributedString
 */
//- (NSMutableAttributedString *)attribteWithImage:(UIImage *)image fontSize:(CGFloat) fontSize;

+ (NSString *)lr_stringDate;

- (CGSize)sizeWithFont:(UIFont *)font maxSize:(CGSize)maxSize;

- (NSString *)paramsStringWithParam:(NSDictionary *)params;

//10000 ----> 1万
+ (NSString *)stringWithInt:(NSInteger)number;

//16-09-17 17:09:59 ----> 7时23分前
- (NSString *)timeAgo;

//适配的html
- (NSString *)htmlStr;

+ (NSString *)strWithInteger:(NSInteger)integer;
+ (NSString *)strWithFloat:(double)floatStr;

@end
